642cda6ece9519dee4934c5beacb338d766b825f,examples/SoftBody2D_Cloth/SoftBody2D_Cloth.java,SoftBody2D_Cloth,draw,#,180
Before Change
// 2) springs
for(DwSoftBody2D body : softbodies){
if(DISPLAY_SPRINGS_BEND ) body.drawSprings(this.g, DwSpringConstraint.TYPE.BEND , DISPLAY_MODE);
if(DISPLAY_SPRINGS_SHEAR ) body.drawSprings(this.g, DwSpringConstraint.TYPE.SHEAR , DISPLAY_MODE);
if(DISPLAY_SPRINGS_STRUCT) body.drawSprings(this.g, DwSpringConstraint.TYPE.STRUCT, DISPLAY_MODE);
}
After Change
// 3 different calls, to get control over the drawing order.
// body.displaySprings(this.g, DISPLAY_MODE); // faster, but order is ignored
body.displaySprings(this.g, DISPLAY_MODE, DwSpringConstraint.TYPE.BEND );
body.displaySprings(this.g, DISPLAY_MODE, DwSpringConstraint.TYPE.SHEAR );
body.displaySprings(this.g, DISPLAY_MODE, DwSpringConstraint.TYPE.STRUCT);
}